<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link rel="stylesheet" href="/Blog/Public/Admin/Css/public.css" />  
    <!-- 配置文件 -->
    <script type="text/javascript" src="/Blog/Public/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="/Blog/Public/ueditor/ueditor.all.min.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
    	window.UEDITOR_HOME_URL = "/Blog/Public/ueditor/";
        window.onload = function(){ 
        	window.UEDITOR_CONFIG.initialFrameHeight = 500;
        	window.UEDITOR_CONFIG.initialFrameWidth = 1100;        	
        	UE.getEditor('container');        	
        }    
    </script>
</head>
<body>
	<form action="<?php echo U('Home/Bowen/doxiugai');?>" method="POST">
		<table class="table">
			<tr>
				<th colspan="2">文章修改</th>
			</tr>
			<tr>
				<td align="right" width="10%">所属分类:</td>					
				<td>			
					<select name="cid">
						<option value="<?php echo ($boke["cid"]); ?>"><?php echo ($boke["step"]); ?></option>
						<?php if(is_array($step)): foreach($step as $key=>$v): ?><option value ="<?php echo ($v["id"]); ?>"><?php echo ($v["log"]); echo ($v["name"]); ?></option><?php endforeach; endif; ?>
					</select>					
				</td>
			</tr>			
			<tr>
				<td align="right">文章属性</td>				
				<td>					
					<?php if(is_array($attr)): foreach($attr as $key=>$v): ?><lable style="margin-right:10px;">
							<input type="checkbox" name="aid[]" value="<?php echo ($v["id"]); ?>"
							<?php if(is_array($boke["attr"])): foreach($boke["attr"] as $key=>$value): if($value['id'] == $v['id']): ?>checked="checked"<?php endif; endforeach; endif; ?>	
							><?php echo ($v["name"]); ?></input>
						</lable><?php endforeach; endif; ?>
				</td>							
			</tr>
			<tr>
				<td align="right">文章标题</td>
				<td>
					<input type="text" name="title" value="<?php echo ($boke["title"]); ?>"/>
				</td>
			</tr>
			<tr>
				<td align="right">文章摘要</td>
				<td>
					<input type="text" name="abstract" value="<?php echo ($boke["abstract"]); ?>"/>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<textarea name="content" id="container" ><?php echo ($boke["content"]); ?></textarea>
				</td>			
			</tr>
			<tr>
				<td colspan="2" align="center">
					<input type="hidden" name="id" value="<?php echo ($boke["id"]); ?>"/>
					<input type="submit" value="确认"/>
				</td>
			</tr>			
		</table>	
	</form>
</body>
</html>